package com.allen.imsystem.user.service;

import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * @ClassName MailService
 * @Description
 * @Date 2022/4/11
 * @Version 1.0
 */
@Service
public interface MailService {

    /**
     *  使用freemarker模板引擎发送邮件接口
     * @param subject   标题
     * @param location  附件地址, 为null不发送附件
     * @param emailAddress  接收方邮箱地址
     * @return
     */
    boolean sendMailFreeMarker(String subject, String location, String emailAddress, Map<String, String> model);
}
